﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace NetPE.Dialogs
{
    public class HexDialog : BaseDialog
    {
        HexEditor etr;
        public HexDialog(byte[] val)
            : base(val)
        {
            etr = new HexEditor();
            etr.Object = val;
            etr.Dock = System.Windows.Forms.DockStyle.Fill;
            this.ClientSize = new Size(650, 350);
            this.Controls.Add(etr);
        }

        public override object Object
        {
            get
            {
                return etr.Object;
            }
            protected set
            {
                etr.Object = value;
            }
        }
    }
}
